package lab02.test28;

import java.util.InputMismatchException;
import java.util.Scanner;

/**
 * Created by V555 on 2017/11/9.
 */
public class Test {
    public static void main(String[] args) {
        double radius=0,area;
        Scanner scanner = new Scanner(System.in);

        System.out.print("请输入半径：");
        try {
            radius = scanner.nextDouble();

        } catch (InputMismatchException e) {
            System.out.println("输入的数据类型有误！！！");
        }
        area=3.14*radius*radius;
        System.out.println("area is :" + area);
    }
}

